import request from '../utils/request'

//获取装配工单列表
export function getList(data) {
  return request({
    url: '/assembly/getList',
    method: 'post',
    data
  })
}

//装配工单编辑
export function assemblyEdit(data) {
  return request({
    url: '/assembly/edit',
    method: 'post',
    data
  })
}

//装配工单删除
export function assemblyDel(data) {
  return request({
    url: '/assembly/del',
    method: 'post',
    data
  })
}

//装配工单详情
export function assemblyDetail(data) {
  return request({
    url: '/assembly/detail',
    method: 'post',
    data
  })
}

//装配工单模板打印
export function exportDataByModel(data) {
  return request({
    responseType: 'blob',
    url: '/assembly/exportDataByModel',
    method: 'post',
    data
  })
}